LaunchDoc allows to open or print a document by launching its application.
SYNTAX
LaunchDoc <pathname>[,<"print|open">]
PARAMETERS
<pathname> is the full pathName of the document.
<"print|open"> defines the action to perform. Default is "open".
Using "!", "?" and "=" as first parameter will return an online help (resp. copyright, syntax and output).
USING
By using AppleEvents, the XCMD requires System 7 and simulates a double-clic on a document icon from within the Finder. This allows to get the correct application, and even switch it to front if it's already in memory.
Free for non-commercial use. Use in commercial software subjected to prior acknowledgement and licensing from the author, reachable at the following network addresses: